package com.class05.m_innerclass.b;

public class NoteBook {
    //    静态代码块 -> 普通块 -> 构造方法
    static {
        System.out.println("静态代码块");
    }
    {
        System.out.println("普通块");
    }
    public NoteBook() {
        System.out.println("构造方法");
    }
    public void open() {
        System.out.println("笔记本开机");
    }

    public static void main(String[] args) {
        NoteBook nb = new NoteBook();
        nb.open();
        nb.open();
        nb.open();
        nb.open();
        nb.open();
        nb.open();

    }

}
